package com.rxt.model.vo;

import lombok.Data;
import org.jetbrains.annotations.NotNull;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
public class MyOrderVo implements Comparable<MyOrderVo> {
    private Long id;
    private String ordersId;
    private Integer status;
    private LocalDateTime checkoutTime;
    private String image;
    private BigDecimal price;
    private Long addressId;
    private String productName;
    private String productSku;
    private Integer number;
    private BigDecimal amount;

    @Override
    public int compareTo(@NotNull MyOrderVo myOrderVo) {
        return (int) (myOrderVo.getId() - this.getId());
    }
}
